import javax.microedition.lcdui.Display;
import javax.microedition.lcdui.Canvas;
import javax.microedition.lcdui.Graphics;

public class Reset extends Canvas{
	private Display display;
	private MainMenu mainmenu;
	private Options options;
	public Reset(MainMenu mainmenu, Options options, Display display){
		this.display = display;
		this.mainmenu = mainmenu;
		this.options = options;
		setFullScreenMode(true);
	}
	public void paint(Graphics g){
		if(Option.language == true){
			g.setColor(255, 255, 255);
			g.fillRect(0, 0, 128, 160);			
			g.setColor(0, 0, 0);
			//g.drawLine(64,0,64,160);
			g.drawString("Ban that su muon", 23, 55, 0);
			g.drawString("choi lai tu dau ?", 29, 70, 0);
			g.drawString("Co", 2, 145, 0);
			g.drawString("Khong", 96, 145, 0);
		}
		else{
			g.setColor(255, 255, 255);
			g.fillRect(0, 0, 128, 160);
			g.setColor(0, 0, 0);
			//g.drawLine(64,0,64,160);
			g.drawString("Reset Game ?", 30, 55, 0);	
			g.drawString("Yes", 2, 145, 0);
			g.drawString("No", 114, 145, 0);
		}
	}
	protected void keyPressed(int code){
		if(code == -6){}
				
		if(code == -7)
			display.setCurrent(options);
	}
}